package com.cspg.ssss.repository;

import com.cspg.ssss.domain.GradeRoleUser;
import com.cspg.ssss.domain.RoleDepartEntity;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
import java.util.Map;

@Mapper
public interface GradeRoleUserMapper {
    int insertBatch(List<GradeRoleUser> records);

    /**
     * 根据部门全路径中文，查询审核权限
     * @param depart_pathname
     * @return
     */
    List<GradeRoleUser> findGradeRoleUserByDepartPathname(String depart_pathname);

    List<RoleDepartEntity> findRoleListByOptType(int optType);

    List<GradeRoleUser> findUserListByDepartRole(Map<String,Object> condition);

    int deleteByDepartRole(Map<String,Object> condition);

    List<GradeRoleUser> findDepartRoleListByUserid(Map<String,Object> condition);
}